Unknown column 'images' in 'where clause'


In file /home/u825828829/domains/hlk.ee/public_html/controllers/raamatud.php, line 84, function view( "SELECT book_id, book_title, book_image, book_year, book_pages, book_description, book_size, book_ISBN, cover_name, CONCAT(illustrator_fname,' ', illustrator_lname) as illustrator_name, book_available_as_ebook, GROUP_CONCAT(CONCAT(author_fname, ' ', author_lname)) as autor FROM book NATURAL JOIN book_authors NATURAL JOIN author LEFT JOIN illustrator ON book.illustrator_id = illustrator.illustrator_id NATURAL JOIN cover WHERE book.deleted = 0 AND book_id = images GROUP BY book_id" )


Stack trace:

#0 system/database.php(84): db_error_out()
#1 controllers/raamatud.php(52): get_first('SELECT book_id,...')
#2 system/classes/Application.php(83): raamatud->view()
#3 index.php(10): Application->__construct()
#4 {main}